package com.cw.jeeyt.service.intf.git;

import java.util.List;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.service.bo.git.GitUploadSqlRecordBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * 上传数据库脚本记录业务接口
 *
 * @author chenw
 * @date 2019-02-25 00:51:03
 */
public interface GitUploadSqlRecordService {
    /**
     * 查询所有上传数据库脚本记录列表信息
     */
    List<GitUploadSqlRecordBo> queryGitUploadSqlRecordList() throws Exception;

    /**
     * 删除上传数据库脚本记录
     *
     * @param gitUploadSqlRecordBo
     */
    void delete(GitUploadSqlRecordBo gitUploadSqlRecordBo) throws Exception;

    /**
     * 更新上传数据库脚本记录
     *
     * @param gitUploadSqlRecordBo
     */
    void update(GitUploadSqlRecordBo gitUploadSqlRecordBo) throws Exception;

    /**
     * 更新上传数据库脚本记录不为空的字段
     *
     * @param gitUploadSqlRecordBo
     */
    void updateSelective(GitUploadSqlRecordBo gitUploadSqlRecordBo) throws Exception;

    /**
     * 根据主键查询上传数据库脚本记录
     *
     * @return
     */
    GitUploadSqlRecordBo getGitUploadSqlRecordById(Long recordId) throws Exception;

    /**
     * 新增上传数据库脚本记录
     *
     * @param gitUploadSqlRecordBo
     * @return
     */
    Integer insert(GitUploadSqlRecordBo gitUploadSqlRecordBo) throws Exception;

    /**
     * 新增上传数据库脚本记录不为空的字段
     *
     * @param gitUploadSqlRecordBo
     * @return
     */
    Integer insertSelective(GitUploadSqlRecordBo gitUploadSqlRecordBo) throws Exception;

    /**
     * 分页查询上传数据库脚本记录
     *
     * @param gitUploadSqlRecordBo
     * @param startNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<GitUploadSqlRecordBo> queryByPage(GitUploadSqlRecordBo gitUploadSqlRecordBo, Integer startNum,
        Integer pageSize, Order order) throws Exception;
}
